#include "client.h"
#include<vector>
#include<string>
#include <map>

using namespace std;

typedef map<string, int > clientMessageSequencerMap;

class Sequencer: public Client
{	
 public:

  static clientMessageSequencerMap clientMsgSeqMap;
  static int sockSequencer;
  static int currentSequenceNumber;
  static vector<Message>  seqMessageQueue;	
  Sequencer(char * argv[]);
  
  static void* callForListening(void *threadid);
  static void* callForListeningUI(void * data);
  //static void handlingMethod(int opopop);
  //static void* callForChecking(void * data);
 
  static void listen_and_sequence(int port, int callType);
  Sequencer(char * argv[],vector<string> iptables);
  // void log_message(string data);
  
  void listen_and_sequence(string data);
  ~Sequencer();
};
